package com.quintal.androidtouchcloud.dialogs;

import com.quintal.androidtouchcloud.R;

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;

public class NoAppDialogFragment extends DialogFragment  {
	protected final String MODULE = "DIALOG WINDOW";

	@Override
	public Dialog onCreateDialog(Bundle savedInstanceState){
		LayoutInflater infltr = getActivity().getLayoutInflater();
		AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
		builder.setMessage(R.string.no_app_message);
		builder.setView(infltr.inflate(R.layout.dialog_layout, null));
		builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
					
					@Override
					public void onClick(DialogInterface arg0, int arg1) {
						Log.d(MODULE , "ok dialog clicked");
						
					}
				});
		builder.setNegativeButton("", new DialogInterface.OnClickListener() {
			
			@Override
			public void onClick(DialogInterface arg0, int arg1) {
				// TODO Auto-generated method stub
				
			}
		});
	return builder.create();
	}
}
